com.sabro.jbusiness.gui.formTreeTable
Class ObjectNode
java.lang.Object
com.sabro.jbusiness.gui.formTreeTable.ObjectNode
public class ObjectNode
- extends java.lang.Object
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
ObjectNode
public ObjectNode(java.lang.Comparable<?> object)
ObjectNode
public ObjectNode(ObjectNode objectNodeParent,
java.lang.Comparable<?> object)
getObjectNodeParent
public ObjectNode getObjectNodeParent()
getObject
public java.lang.Comparable<?> getObject()
isLeaf
public boolean isLeaf()
setIsExpanded
public void setIsExpanded(boolean isExpanded)
isExpanded
public boolean isExpanded()
getChildren
public ObjectNode[] getChildren()
setComparator
public void setComparator(TreeTableComparator comparator)
getComparator
public TreeTableComparator getComparator()
getChildrenOrdered
public ObjectNode[] getChildrenOrdered()
addChildren
public ObjectNode[] addChildren(java.lang.Comparable<?>[] path)
addChildren
public void addChildren(ObjectNode objectNode)
pathBelongsTo
public boolean pathBelongsTo(java.lang.Comparable<?>[] path,
ObjectNode objectNode)
pathBelongsTo
public boolean pathBelongsTo(java.lang.Comparable<?>[] path,
int deph,
ObjectNode objectNode)
clear
public void clear()
removeChildren
public void removeChildren(ObjectNode objectNode)
setWidth
public void setWidth(int width)
getWidth
public int getWidth()
getWidthTotal
public int getWidthTotal()
getWidthOfChildren
public int getWidthOfChildren()
getDeep
public int getDeep()
getMaxDeepFromHere
public int getMaxDeepFromHere()
- Informa a número de máximo de níveis que existem abaixo deste.
- Returns:
getObjectNodes
public java.util.ArrayList<ObjectNode> getObjectNodes()
getObjectNode
public ObjectNode getObjectNode(int index)
getIndexOf
public int getIndexOf(ObjectNode objectNode)
invalidaObjectNodes
public void invalidaObjectNodes()
- Indica que a relação linearizada de objectNodes é inválida.
toString
public java.lang.String toString()
- Overrides:
toString
in class java.lang.Object